package com.lin.boot05webadmin.service;

import com.lin.boot05webadmin.bean.Account;
import com.lin.boot05webadmin.mapper.AccountMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ChenweiLin
 * @create 2021-04-03 21:36
 */
@Service
public class AccountService {
    @Autowired
    AccountMapper accountMapper;//这个波浪线不用管 idea的bug

    public Account getAcct(int id) {
        return accountMapper.getAcct(id);
    }

    public Account getAcctByMoney(String money){
        return accountMapper.getAcctByMoney(money);
    }
}
